package com.lm.activiti.boot.tools;

import com.google.common.collect.Lists;
import org.apache.commons.collections4.CollectionUtils;

import java.util.Collection;
import java.util.List;

/**
 * @author lm_jcf
 * @date 2020/1/16 10:53
 */
public class CollectionUtilsTest {

    public static void main(String[] args) {

        List<Integer> list_1 = Lists.newArrayList(1, 2, 3);
        List<Integer> list_2 = Lists.newArrayList(3);

        Collection<Integer> intersection = CollectionUtils.intersection(list_1, list_2);

        System.out.println(intersection);
        System.out.println(list_1);
    }
}
